﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Babelfish.XML
{
    /// <summary>
    /// 
    /// </summary>
    public class XmlDocument : XmlNode, INodeDocument
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="XmlDocument"/> class.
        /// </summary>
        /// <param name="source">The source.</param>
        public XmlDocument(string source)
        {
            Document = new System.Xml.XmlDocument();
            Document.LoadXml(source);

            Node = Document.DocumentElement;
        }
    }
}
